package yaty.lee.ssh2.exception;

/**
 * 模型运行异常 该异常应该被Action处理掉, 而不应该在其他层处理, 但可以由其他层抛出.
 * 
 * @author TATY
 * 
 */
public class ModelException extends Exception {
	private static final long serialVersionUID = 7989218600814847038L;
	// 错误代码
	private int error;

	public int getError() {
		return error;
	}

	public ModelException(int error, String message) {
		super(message);
		this.error = error;
	}
}
